< previous page page_144 next page >

Page 144
12181-0144a.gif
Figure 5.13.
The Object Browser displays all of your application's object information.
contains the detailed information about classes and their properties, events, methods, defined constants, and more. For every class that you create, or objects that are included in your application, or even information about other applications, such as Microsoft Excel, Visual Basic creates type library information to display. The Library list box displays each different type library that is referenced by your project (see Figure 5.14). Each of these will display the classes included in that type library.
The Object Browser will even show you the type library for your project that was created by Visual Basic. To see what is associated with the class you just created, select your project's name from the Library list boxthis will display all the objects that are included in your projectand then select the new class that you have created. You will see all of the properties, methods, and events that you added to the class as shown in Figure 5.15.
This tool is very useful if you can't remember a property name; or, if you must use a Visual Basic constant, you can look it up in the Object Browser. For example, if you must know what the Select properties are, you can search for the string SELECT, and the browser will display all references that it finds as shown in Figure 5.16.
After the constants are displayed, you can select the one you want, copy it, and then paste it into the code where needed.

 
< previous page page_144 next page >

If you like this book, buy it!